//
//  XMSDemo1Controller.m
//  XMSimonUtils_Example
//
//  Created by 徐盟 on 2023/3/17.
//  Copyright © 2023 xumeng. All rights reserved.
//

#import "XMSCategoryController.h"
#import "NSDictionary+XM.h"

@interface XMSCategoryController ()
{
    NSString * _summary;
}

@property(nonatomic, copy) NSString *name;

@end

@implementation XMSCategoryController

- (void)viewDidLoad {
    [super viewDidLoad];
  
    // Do any additional setup after loading the view.
}

+ (NSArray<NSDictionary *> *)getItemDicts
{
    NSArray<NSDictionary *> * dicts = @[
        @{@"name":@"NSDictionary+XM", @"action": @"test1"},
      
    ];
    
    return  dicts;
}



-(void) test1
{
    self.log(@"test1 NSDictionary");
    NSDictionary * dict3 = @{
        @"name": @"Simon",
        @"age": @31,
        @"height": @175.1,
        @"weight": @70
    };
    
    NSMutableDictionary * dict4 = [dict3 xm_keyValues];
    self.log(@"dict4:%@", dict4);

    NSMutableDictionary * dict5 = [dict3 xm_keyValuesWithKeys:@[@"name", @"age"]];
    self.log(@"dict5:%@", dict5);
    
    NSMutableDictionary * dict6 = [dict3 xm_keyValuesWithIgnoreKeys:@[@"name", @"age"]];
    self.log(@"dict6:%@", dict6);
    
    NSMutableDictionary * dict7 = [dict3 xm_keyValuesWithKeys:@[@"name"] ignoredKeys:@[@"age"]];
    self.log(@"dict7:%@", dict7);
    
    
}



@end
